import request from '@/utils/request'
import {listInstitutionClass} from "@/api/tongban/class";

//查询班级
export function listInstitutionGrade(id){
  let query = {id:id}
  return request({
    url:'/tongban/grade/listInstitutionGrade',
    method:'get',
    params:query,
  })
}

// 查询年级列表
export function listGrade(query) {
  return request({
    url: '/tongban/grade/list',
    method: 'get',
    params: query
  })
}

// 查询年级详细
export function getGrade(gradeId) {
  return request({
    url: '/tongban/grade/' + gradeId,
    method: 'get'
  })
}

// 新增年级
export function addGrade(data) {
  return request({
    url: '/tongban/grade',
    method: 'post',
    data: data
  })
}

// 修改年级
export function updateGrade(data) {
  return request({
    url: '/tongban/grade',
    method: 'put',
    data: data
  })
}

// 删除年级
export function delGrade(gradeId) {
  return request({
    url: '/tongban/grade/' + gradeId,
    method: 'delete'
  })
}

// 导出年级
export function exportGrade(query) {
  return request({
    url: '/tongban/grade/export',
    method: 'get',
    params: query
  })
}
